home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
faq
/
timeg153.lha
/
TIME_GUIDE
/
Install
/
Install_Guide
next >
Wrap
Text File
|
1995-08-12
|
6KB
|
266 lines
; $VER: Install_Guide 1.51 (12.08.95)
; Script to install Time.guide
(complete 0)
(set old_level @user-level)
(set @default-dest "sys:")
;=============================================================================
; Deutsch strings
;(if (= @languge "Deutsch")
;(
(set #bad-kick
(cat "Sie benötigen AMIGA OS 2.0+ zum Installieren der "
"Time.guide!"))
(set #ask-dir "Wohin soll die Time.guide installiert werden?")
(set #ask-funktion "Was soll installiert werden?\n\n")
(set #ask1 "AmigaGuide")
(set #ask2 "Startfiles")
(set #ask3 "Amiga-Magazin-Liste")
(set #ask4 "Amiga-Plus-Liste")
(set #ask5 "SaarAG-Liste")
(set #ask6 "Time-Liste")
(set #ask7 "Indizes")
(set #ask8 "Hilfsprogramme")
(set #ask9 "Sourcecodes")
(set #ask-funktion-help
(cat "\nSie müssen auswählen, was installiert werden soll.\n\n"
"Mit \"" #ask1 "\" wird dieses auf Ihre Startdisk installiert\n"
"\"" #ask2 "\" installiert Startfiles zur Time.guide (werden unbedingt benötigt)\n"
"\"" #ask3 "\" installiert Inhalte der Amiga-Magazin-Disks\n"
"\"" #ask4 "\" installiert Inhalte der Amiga-Plus-Disks\n"
"\"" #ask5 "\" installiert Inhalte der SaarAG-Disks\n"
"\"" #ask6 "\" installiert Inhalte der Time-Disks\n"
"\"" #ask7 "\" installiert den Index zu allen Serien\n"
"\"" #ask8 "\" installiert Bestellprogramme\n"
"\"" #ask9 "\" zu den Hilfsprogrammen\n"
))
(set #ask-funktion-2 "Welche Sprache(n) wollen Sie installieren?\n\n")
(set #Install "Installiere ")
(set #Proc-Quest "Welche Version der Bestellsoftware soll installiert werden?\n\n")
(set #Unpack "Entpacke ")
(set #default_lang 1)
;))
;=============================================================================
; make sure we are running under V37+
(if (< (/ (getversion) 65536) 37)
(
abort #bad-kick
)
)
;=============================================================================
; Verzeichnis auswählen:
(user 2)
(set target_dir (askdir (prompt #ask-dir @askdir)
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(user old_level)
(set @default-dest target_dir)
;=============================================================================
; Routine zum kopieren/entpacken der Time.guide
(user 2)
(set timesel
(askoptions (prompt #ask-funktion)
(help #ask-funktion-help)
(choices #ask1
#ask2
#ask3
#ask4
#ask5
#ask6
#ask7
#ask8
#ask9
)
(default 2)
))
(user old_level)
(set m 0)
(set n 0)
(while (set Timehier
(select n #ask1
#ask2
#ask3
#ask4
#ask5
#ask6
#ask7
#ask8
#ask9
""
))
(
(if (IN Timesel n)
(
(set #Name (select n "AmigaGuide"
"Startfiles"
"AmiMag"
"AmiPlus"
"Saar"
"Time"
"Indizes"
"Zusatz"
"Source"
)
)
(set #Complete (* (+ n 1) 11))
(WORKING (CAT #Unpack Timehier))
(RUN (cat "lzx x -r /" #Name ".lzx ram:"))
(if (= n 0)
(
(copylib (prompt "AmigaGuide.library" @copylib)
(help @copylib-help)
(source "ram:AmigaGuide/amigaguide.library")
(dest "Libs:")
(confirm 2)
)
(copylib (prompt "AmigaGuide" @copylib)
(help @copylib-help)
(source "ram:AmigaGuide/amigaguide")
(dest "c:")
(confirm 2)
)
))
(if (AND (> n 0) (< n 7))
(
(copyfiles (prompt (cat #Install Timehier) @copyfiles)
(help @copyfiles-help)
(source (cat "ram:" #Name "/"))
(dest target_dir)
(all)
)
))
(if (= n 7)
(
(set CPUStr (database "cpu"))
(if (< CPUStr "68020")
(set NewProc 0)
(set NewProc 1)
)
(if (> @user-level 1)
(set NewProc
(askchoice (prompt #Proc-Quest)
(help @askchoice)
(choices "MC68000/10"
"MC68020/30/40/60"
)
(default NewProc)
)
)
)
(if (< NewProc 1)
(
(delete (CAT "ram:" #Name "/T_Bestellen.020+"))
(delete (CAT "ram:" #Name "/T_Bestellen.020+.info"))
)
(
(delete (CAT "ram:" #Name "/T_Bestellen"))
(rename (CAT "ram:" #Name "/T_Bestellen.020+")
(CAT "ram:" #Name "/T_Bestellen")
)
(delete (CAT "ram:" #Name "/T_Bestellen.020+.info"))
)
)
(if (exists "LOCALE:")
(
(user 2)
(set lang
(askoptions (prompt #ask-funktion-2)
(help @askoptions-help)
(choices
; "dansk"
"deutsch"
"english"
; "español"
; "français"
; "italiano"
; "nederlands"
; "norsk"
; "portoguês"
; "svenska"
)
(default #default_lang)
)
)
(user old_level)
(set m 0)
(while (set language
(select m
; "dansk"
"deutsch"
"english"
; "español"
; "français"
; "italiano"
; "nederlands"
; "norsk"
; "portoguês"
; "svenska"
""
))
(
(set LocSource (cat "ram:" #Name "/Locale/Catalogs/" language))
(if (exists LocSource)
(
(if (IN lang m)
(
(makedir (cat "LOCALE:Catalogs/" language))
(run (cat "copy >NIL:" LocSource "/#? Locale:Catalogs/" language " all"))
; VORSICHT: Guru-Gefahr, deshalb Kommentar! (Wieso? Weis ich nicht!)
; (copyfiles (prompt (CAT #Install language) @copyfiles)
; (help @copyfiles-help)
; (source (cat LocSource "/"))
; (dest (CAT "LOCALE:Catalogs/" language))
; (all)
; )
))
(run (cat "delete " LocSource "/#? all"))
(run (cat "delete " LocSource))
))
(set m (+ m 1))
))
))
(run (cat "delete ram:" #Name "/Locale/#? all"))
(run (cat "delete ram:" #Name "/Locale"))
(copyfiles (prompt (CAT #Install Timehier) @copyfiles)
(help @copyfiles-help)
(source (cat "ram:" #Name "/"))
(dest target_dir)
(all)
)
(complete #Complete)
))
(if (= n 8)
(
(makedir (TACKON target_dir #Name))
(copyfiles (prompt (cat #Install Timehier) @copyfiles)
(help @copyfiles-help)
(source "ram:Source/")
(dest (TACKON target_dir "Source/"))
(all)
)
))
))
(run (cat "delete ram:" #Name "/#? all"))
(run (cat "delete ram:" #Name))
(complete #Complete)
(set n (+ n 1))
))
(complete 100)